﻿<UserControl x:Class="StackDeck.Views.CoreTopUsersView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:StackDeck.Views" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <local:ColumnHeader Grid.Row="0" />
        
        <ItemsControl Grid.Row="1" x:Name="Users">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding DisplayName}" />
                        <TextBlock Text="{Binding Reputation}" />
                    </StackPanel>
                </DataTemplate>                                        
            </ItemsControl.ItemTemplate>
        </ItemsControl>
        
    </Grid>
    
</UserControl>